home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Idea Cafe - The Small Business Gathering Place
/
Idea Cafe.iso
/
java
/
clean_html
< prev
next >
Wrap
Text File
|
1996-12-09
|
657b
|
25 lines
#!/bin/csh -f
#
# Created by: Siamak Farah
# Modified by: Siamak Farah on Sat Oct 7 10:16:27 PDT 1995
# Modified by:
#
# This file will change XXX to YYY on all the files
# in a given site
#
foreach i ( `find . -name "*.htm*" -print` )
set dir = $i:h
set dir_name = $dir:t
if ( ! -d $i ) then
cat $i | sed -e "s,href,HREF,g" \
-e 's,HREF="/",HREF="http://www.sun.com",g' \
-e 's,HREF="/javacomputing",HREF="welcome.htm" TARGET="_top",g' \
-e 's,HREF="javacomputing",HREF="welcome.htm" TARGET="_top",g' \
-e 's,HREF="../java.html",HREF="welcome.htm" TARGET="_top",g' \
> tmp_file
mv tmp_file $i
echo did $i
endif
end
exit